//
// Created by songyunqi123 on 2019/1/5.
//

#ifndef MYAPPLICATION_BASE64_H
#define MYAPPLICATION_BASE64_H
#include <jni.h>
#include <memory>

class base64 {
public:
    std::shared_ptr<uint8_t > base64_encode(const void *src, size_t len,
                                  size_t *out_len);
    std::shared_ptr<uint8_t > base64_decode(const void *src, size_t len,
                                  size_t *out_len);
    std::shared_ptr<uint8_t > base64_url_encode(const void *src, size_t len,
                                      size_t *out_len, int add_pad);
    std::shared_ptr<uint8_t > base64_url_decode(const void *src, size_t len,
                                      size_t *out_len);
};


#endif //MYAPPLICATION_BASE64_H
